﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using VersionComparer.Configuration;

namespace VersionComparer.DataModel.Xml
{
    public class XmlSettings : SettingsBase
    {
        const string IgnoreCommentsDisplayName = "Ignore comments";
        const string IgnoreCommentsDescription = "If true comments are excluded from comparisons";
        const bool DefaultIgnoreComments = true;

        #region statics
        static XmlSettings settings = LoadSettings<XmlSettings>();

        public static XmlSettings Current
        {
            get
            {
                return settings;
            }
        }

        #endregion statics



        public XmlSettings()
            : base()
        {
            IgnoreComments = DefaultIgnoreComments;
        }


        public override string Name
        {
            get 
            { 
                return Resources.Resources.XmlSettingsName; 
            }
        }
        [DisplayName(IgnoreCommentsDisplayName)]
        [Description(IgnoreCommentsDescription)]
        [DefaultValue(DefaultIgnoreComments)]
        [Category(CATEGORY_GENERAL)]
        public bool IgnoreComments
        {
            get;
            set;
        }


    }
}
